/**
 * BrandBigData.com Inc. Copyright (c) 2018 All Rights Reserved.
 */
package com.qibao.toolkit.util;

import com.google.common.base.Charsets;
import com.google.common.hash.HashCode;
import com.google.common.hash.Hashing;

/**
 * @author wangcong
 * @version $Id: HashUtils.java, v0.1 2018/3/27 19:28 wangcong Exp $$
 */
public abstract class HashUtils {

    public static int hash(String str) {

        HashCode hashCode = Hashing.md5().hashString(str, Charsets.UTF_8);

        return hashCode.hashCode();
    }


}
